package com.lelouch.wetlandcommon.domain.device;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Document(collection = "CollectionData")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CollectionData implements Serializable {

    /**
     * 采集数据实体
     */
    private static final long serialVersionUID = 1L;

    @Id
    private String id;
    @Field("coda_datetime")
    private Date datetime;//采集时间
    @Field("coda_Indicator")
    private String Indicator;//监测指标id
    @Field("coda_value")
    private double value;//采集到的数值
    @Field("coda_processedvalue")
    private double processedvalue;//处理后的数据
    @Field("coda_site")
    private String site;//监测点
    @Field("coda_station")
    private String station;//监测站
    @Field("coda_collector")
    private String collector;//采集器
    @Field("coda_sensor")
    private String sensor;//传感器
    @Field("coda_way")
    private String way;//"在线自动"和"手动录入"
    @Field("coda_author")
    private String author;//采集人，手动输入的时候是用户id，自动采集的时候是null
    @Field("coda_remarks")
    private String remarks;//备注
    @Field("sign")
    private String sign;//异常标记
}
